package com.hl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.mapper.PointProductCategoriesMapper;
import com.hl.domain.PointProductCategories;
import com.hl.service.IPointProductCategoriesService;

/**
 * 积分商品分类Service业务层处理
 * 
 * @author vv
 * @date 2025-08-07
 */
@Service
public class PointProductCategoriesServiceImpl implements IPointProductCategoriesService 
{
    @Autowired
    private PointProductCategoriesMapper pointProductCategoriesMapper;

    /**
     * 查询积分商品分类
     * 
     * @param id 积分商品分类主键
     * @return 积分商品分类
     */
    @Override
    public PointProductCategories selectPointProductCategoriesById(String id)
    {
        return pointProductCategoriesMapper.selectPointProductCategoriesById(id);
    }

    /**
     * 查询积分商品分类列表
     * 
     * @param pointProductCategories 积分商品分类
     * @return 积分商品分类
     */
    @Override
    public List<PointProductCategories> selectPointProductCategoriesList(PointProductCategories pointProductCategories)
    {
        return pointProductCategoriesMapper.selectPointProductCategoriesList(pointProductCategories);
    }

    /**
     * 新增积分商品分类
     * 
     * @param pointProductCategories 积分商品分类
     * @return 结果
     */
    @Override
    public int insertPointProductCategories(PointProductCategories pointProductCategories)
    {
        return pointProductCategoriesMapper.insertPointProductCategories(pointProductCategories);
    }

    /**
     * 修改积分商品分类
     * 
     * @param pointProductCategories 积分商品分类
     * @return 结果
     */
    @Override
    public int updatePointProductCategories(PointProductCategories pointProductCategories)
    {
        return pointProductCategoriesMapper.updatePointProductCategories(pointProductCategories);
    }

    /**
     * 批量删除积分商品分类
     * 
     * @param ids 需要删除的积分商品分类主键
     * @return 结果
     */
    @Override
    public int deletePointProductCategoriesByIds(String[] ids)
    {
        return pointProductCategoriesMapper.deletePointProductCategoriesByIds(ids);
    }

    /**
     * 删除积分商品分类信息
     * 
     * @param id 积分商品分类主键
     * @return 结果
     */
    @Override
    public int deletePointProductCategoriesById(String id)
    {
        return pointProductCategoriesMapper.deletePointProductCategoriesById(id);
    }
}
